package nancal.mp.db.mongo.entity.dev

import nbcp.base.db.annotation.Cn
import nbcp.base.extend.Slice
import nbcp.base.extend.ToJson

data class GitFolderData(
        @Cn("应用名") var name: String = "",
        @Cn("虚拟目录") var location: String = "",
        @Cn("路径") var path: String = "",
        @Cn("端口号") var port: Int = 0,
        @Cn("中文应用名") var cnname: String = "",
        @Cn("package.json 中的构建脚本") var buildScript: String = "",
        var config: GitFolderDevConfig = GitFolderDevConfig()
) {

    override fun toString(): String {
        return this.ToJson().Slice(1, -1)
    }
}